<template>
  <div id="app">
    <router-view/>
  </div>
</template>

<script>
  import Watermark from '@/utils/watermarktest'
  import store from "@tapui/store"
  export default {
    name: 'App',
    data() {
      return {
        systemEnvironment: process.env.NODE_ENV
      }
    },
    mounted() {
      this.$nextTick(() => {
        if (!store.getters.inMicro) {
          if ('production' !== this.systemEnvironment) {
            Watermark.set('测试系统', document.getElementById('app'))
          }
        }
      })
    }
  }
</script>
